package com.tankgame.utils;

import java.awt.*;

public final class Constants {
    // 窗口相关
    public static final int WINDOW_WIDTH = 800;
    public static final int WINDOW_HEIGHT = 600;
    // 游戏画板相关
    public static final Color GAME_PANEL_COLOR = new Color(243, 244, 246);
    public static final int GAME_PANEL_X = 0;
    public static final int GAME_PANEL_Y = 0;
    public static final int GAME_PANEL_WIDTH = 800;
    public static final int GAME_PANEL_HEIGHT = 600;
    public static final int GAME_SPEED = 50;
    // 坦克相关
    public static final int PLAYER_TANK_INITIAL_X = 256;
    public static final int PLAYER_TANK_INITIAL_Y = 256;
    public static final Color PLAYER_TANK_COLOR = new Color(52, 152, 219);
    public static final int PLAYER_TANK_SPEED = 10;
    public static final Color ENEMY_TANK_COLOR = new Color(231, 76, 60);
    public static final int ENEMY_TANK_SPEED = 3;
    public static final int TANK_FIRE_SPEED = 500; //苦熬或速度
    // 除坦克车身外的颜色
    public static final Color TANK_OTHER_PARTS_COLOR = new Color(52, 73, 94);
    // 坦克履带的宽高
    public static final int TANK_TRACK_WIDTH = 4;
    public static final int TANK_TRACK_HEIGHT = 28;
    // 坦克车身的宽高
    public static final int TANK_BODY_WIDTH = 20;
    public static final int TANK_BODY_HEIGHT = 24;
    // 坦克炮塔的直径
    public static final int TANK_TURRET_DIAMETER = 12;
    // 坦克炮筒的宽高度
    public static final int TANK_BARREL_WIDTH = 4;
    public static final int TANK_BARREL_HEIGHT = 18;
    // 坦克的宽高（由上面得出）
    public static final int TANK_WIDTH = TANK_TRACK_WIDTH * 2 + TANK_BODY_WIDTH;
    public static final int TANK_HEIGHT = TANK_TRACK_HEIGHT;
    // 除坦克车身外的矩形圆角大小
    public static final int TANK_OTHER_PARTS_ARC = 2;
    // 子弹相关
    public static final int MISSILE_RADIUS = TANK_BARREL_WIDTH;
    public static final int MISSILE_SPEED = 10;
    // 禁止实例化该类
    private Constants() {
    }
}
